package com.fulin.thread.atom;

public class SerialNumberGenerator {
	private static volatile int serialNumber = 0;
	
	public static synchronized int nextSerialNumber(){
		return serialNumber ++;
	}
}
